﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000593 RID: 1427
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishedRaidInfo : IMessage<FinishedRaidInfo>, IMessage, IEquatable<FinishedRaidInfo>, IDeepCloneable<FinishedRaidInfo>, IBufferMessage
	{
		// Token: 0x1700124C RID: 4684
		// (get) Token: 0x06004020 RID: 16416 RVA: 0x000AFB2D File Offset: 0x000ADD2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishedRaidInfo> Parser
		{
			get
			{
				return FinishedRaidInfo._parser;
			}
		}

		// Token: 0x1700124D RID: 4685
		// (get) Token: 0x06004021 RID: 16417 RVA: 0x000AFB34 File Offset: 0x000ADD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishedRaidInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700124E RID: 4686
		// (get) Token: 0x06004022 RID: 16418 RVA: 0x000AFB46 File Offset: 0x000ADD46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishedRaidInfo.Descriptor;
			}
		}

		// Token: 0x06004023 RID: 16419 RVA: 0x000AFB4D File Offset: 0x000ADD4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishedRaidInfo()
		{
		}

		// Token: 0x06004024 RID: 16420 RVA: 0x000AFB60 File Offset: 0x000ADD60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishedRaidInfo(FinishedRaidInfo other) : this()
		{
			this.fCBNHAKHDGP_ = other.fCBNHAKHDGP_.Clone();
			this.worldLevel_ = other.worldLevel_;
			this.raidId_ = other.raidId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004025 RID: 16421 RVA: 0x000AFBAD File Offset: 0x000ADDAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishedRaidInfo Clone()
		{
			return new FinishedRaidInfo(this);
		}

		// Token: 0x1700124F RID: 4687
		// (get) Token: 0x06004026 RID: 16422 RVA: 0x000AFBB5 File Offset: 0x000ADDB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FCBNHAKHDGP
		{
			get
			{
				return this.fCBNHAKHDGP_;
			}
		}

		// Token: 0x17001250 RID: 4688
		// (get) Token: 0x06004027 RID: 16423 RVA: 0x000AFBBD File Offset: 0x000ADDBD
		// (set) Token: 0x06004028 RID: 16424 RVA: 0x000AFBC5 File Offset: 0x000ADDC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17001251 RID: 4689
		// (get) Token: 0x06004029 RID: 16425 RVA: 0x000AFBCE File Offset: 0x000ADDCE
		// (set) Token: 0x0600402A RID: 16426 RVA: 0x000AFBD6 File Offset: 0x000ADDD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x0600402B RID: 16427 RVA: 0x000AFBDF File Offset: 0x000ADDDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishedRaidInfo);
		}

		// Token: 0x0600402C RID: 16428 RVA: 0x000AFBF0 File Offset: 0x000ADDF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishedRaidInfo other)
		{
			return other != null && (other == this || (this.fCBNHAKHDGP_.Equals(other.fCBNHAKHDGP_) && this.WorldLevel == other.WorldLevel && this.RaidId == other.RaidId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600402D RID: 16429 RVA: 0x000AFC50 File Offset: 0x000ADE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.fCBNHAKHDGP_.GetHashCode();
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600402E RID: 16430 RVA: 0x000AFCB6 File Offset: 0x000ADEB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600402F RID: 16431 RVA: 0x000AFCBE File Offset: 0x000ADEBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004030 RID: 16432 RVA: 0x000AFCC8 File Offset: 0x000ADEC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RaidId);
			}
			this.fCBNHAKHDGP_.WriteTo(ref output, FinishedRaidInfo._repeated_fCBNHAKHDGP_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004031 RID: 16433 RVA: 0x000AFD34 File Offset: 0x000ADF34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.fCBNHAKHDGP_.CalculateSize(FinishedRaidInfo._repeated_fCBNHAKHDGP_codec);
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004032 RID: 16434 RVA: 0x000AFDA0 File Offset: 0x000ADFA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishedRaidInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.fCBNHAKHDGP_.Add(other.fCBNHAKHDGP_);
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004033 RID: 16435 RVA: 0x000AFE01 File Offset: 0x000AE001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004034 RID: 16436 RVA: 0x000AFE0C File Offset: 0x000AE00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 96U)
				{
					if (num == 48U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.RaidId = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 112U || num == 114U)
				{
					this.fCBNHAKHDGP_.AddEntriesFrom(ref input, FinishedRaidInfo._repeated_fCBNHAKHDGP_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400194B RID: 6475
		private static readonly MessageParser<FinishedRaidInfo> _parser = new MessageParser<FinishedRaidInfo>(() => new FinishedRaidInfo());

		// Token: 0x0400194C RID: 6476
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400194D RID: 6477
		public const int FCBNHAKHDGPFieldNumber = 14;

		// Token: 0x0400194E RID: 6478
		private static readonly FieldCodec<uint> _repeated_fCBNHAKHDGP_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x0400194F RID: 6479
		private readonly RepeatedField<uint> fCBNHAKHDGP_ = new RepeatedField<uint>();

		// Token: 0x04001950 RID: 6480
		public const int WorldLevelFieldNumber = 6;

		// Token: 0x04001951 RID: 6481
		private uint worldLevel_;

		// Token: 0x04001952 RID: 6482
		public const int RaidIdFieldNumber = 12;

		// Token: 0x04001953 RID: 6483
		private uint raidId_;
	}
}
